#ifndef SectionLocker_h__
#define SectionLocker_h__
#ifdef WIN32
#pragma once
#endif
#ifndef platform_h__
#include "System/platform.h"
#endif
#include "System/geeTypes.h"

namespace gee
{
	class SectionLocker
	{
		CRITICAL_SECTION cs;
		int m_locked;
	public:
		SectionLocker();
		~SectionLocker();
	public:
		void lock();
		void unlock();
		bool tryLock();
		bool locked();

	};
}

#endif // SectionLocker_h__